package com.itcast.service.impl;

import java.util.List;

import com.itcast.dao.StudentDao;
import com.itcast.domain.Student;
import com.itcast.service.StudentService;

public class StudentServiceImpl implements StudentService{
	
	private StudentDao studentDao;

	public StudentDao getStudentDao() {
		return studentDao;
	}

	public void setStudentDao(StudentDao studentDao) {
		this.studentDao = studentDao;
	}

	@Override
	public void save(Student student) {
		this.studentDao.save(student);
	}

	@Override
	public void update(Student student) {
		this.studentDao.update(student);
	}

	@Override
	public void delete(Student student) {
		this.studentDao.delete(student);
	}

	@Override
	public List<Student> findById(Integer id,int pageIndex) {
		return this.studentDao.findById(id,pageIndex);
	}

	@Override
	public Student findByIdAndFormId(Integer id, String form_id) {
		return this.studentDao.findByIdAndFormId(id, form_id);
	}

	@Override
	public void setNull(Integer dbid, String name) {
		this.studentDao.setNull(dbid, name);
	}

	@Override
	public void updateForm_id(Integer dbid, String form_id, String value) {
		this.studentDao.updateForm_id(dbid, form_id, value);
	}

}
